package com.stars.entity.sysdict;


import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import io.swagger.annotations.ApiModelProperty;
import com.stars.common.base.entity.BaseAppEntity;
/**
 * @Title: 数据字典实体
 * @author dj
 * @date 2019-10-15 15:49:21
 * @version V1.0
 *
 */
@Data
@Table(name = "SYS_DICTIONARY")
@EqualsAndHashCode(callSuper = false)
public class SysDictEntity extends BaseAppEntity{

	/**名称*/
    @NotBlank(message="名称不能为空!")
    @ApiModelProperty(value = "名称",name ="name")
	private String name;
	/**代码*/
    @NotBlank(message="代码不能为空!")
    @ApiModelProperty(value = "代码",name ="code")
	private String code;
	/**父ID*/
    @ApiModelProperty(value = "父ID",name ="pid")
	private String pid;
	/**层级*/
    @ApiModelProperty(value = "层级",name ="layer")
	private Integer layer;
	/**排序号*/
    @Column(name = "SORT_NUM")
    @ApiModelProperty(value = "排序号",name ="sortNum")
	private Integer sortNum;


}